package com.itheima.stock.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author by itheima
 * @Date 2023/8/28
 * @Description 股票涨幅domain
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class StockRfInfoDomain {
    // 股票编码
    private String code;
    private String name;
    private BigDecimal preClosePrice;// 前收盘价
    private BigDecimal tradePrice; // 当前价额
    private Long tradeAmt;// 交易量
    private BigDecimal tradeVol; // 交易金额
    private BigDecimal increase;// 涨跌
    private BigDecimal upDown;// 涨幅
    private BigDecimal amplitude; //振幅
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date curDate; // 当前日期
}